<?php
/**
 * Copyright (C), 2021-2021, Shall Buy Life info. Co., Ltd.
 * FileName: common.php
 * Description: 说明
 *
 * @author lwl
 * @Create Date    2021/10/27 13:32
 * @Update Date    2021/10/27 13:32 By lwl
 * @version v1.0
 */
return [
    //每页条数
    'page_size' => 20,

    //操作日志
    'operation_log' => [
        'switch' => env('OPERATION_LOG_SWITCH'),
        'actions' => [
            'switch' => '开关',
            'store' => '创建',
            'remove' => '删除',
            'edit' => '更新',
            'import' => '导入',
            'approved' => '审核通过',
            'rejected' => '审核驳回',
        ]
    ],
    'sql_log' => [
        //是否开启监听sql语句，并写入log
        'is_write' => env('WRITE_SQL_LOG', false),

        //内存临界值
        'memory_threshold' => env('SQL_MEMORY_THRESHOLD', 7),

        //响应时间
        'time_out' => env('SQL_TIME_OUT', 5),
    ],

    //缓存key前缀 统一写在这里
    'cache' => [
        'staff' => [
            //后台员工权限
            'permissions' => 'staff:permissions:',

            //后台员工权限 ttl
            'permissions_ttl' => 300,
        ],



        //csrf 表单重复条
        'csrf'=>[
            'token'=>'csrf:',
            'ttl'=>'300'
        ]
    ],
];
